import { REQUEST } from '@/type/request';

/** 快速定义个api请求 */
export const defineRequest = (config: REQUEST.BASIC) => {
    return {
        ...{
            auth: true,
            method: 'get' as 'get' | 'post'
        }, ...config
    };
};